package com.learn.staticProxy;

/**
 * 静态代理举例
 */
public class StaticProxy {
    public static void main(String[] args) {
        //创建被代理类对象
        NikeClothFactory nike = new NikeClothFactory();

        //创建被代理类对象
        ClothFactoryProxy clothFactoryProxy = new ClothFactoryProxy(nike);

        clothFactoryProxy.produceCloth();
    }
}



